<extend name="Public/base" />

<block name="body">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>详细评分列表</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <!--            <a class="btn" href="{:U('add')}">新 增</a>-->
            <!--            <button class="btn ajax-post confirm" url="{:U('changeStatus?method=deleteUser')}" target-form="ids">删 除</button>-->
        </div>

        <!-- 高级搜索 -->
        <div class="search-form fl cf">
            <form action="{:U('index')}" method="POST">
                    老师姓名：<input type="text" name="name" class="text input-2x" value="{$name}" placeholder="老师姓名" /> &nbsp; &nbsp; 
                    选择日期：<input type="text" id="select_date" name="select_date" class="text input-2x" value="{$select_date}" placeholder="点击选择" />
                    <button class="btn">搜索</button>
            </form>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
                <tr>
                    <th class="row-selected row-selected"><input class="check-all" type="checkbox" style="display:none;"/></th>
                    <th class="">ID</th>
                    <th class="">老师姓名</th>
                    <th class="">评价分数</th>
                    <th class="">分店</th>
                    <th class="">是非题问答</th>
                    <th class="">评价时间</th>
                    <!--                    <th class="">操作</th>-->
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.uid}" /></td>
                        <td>{$vo.id} </td>
                        <td>{$vo.name} </td>
                        <td>{$vo.score}</td>
                        <td>{$vo.shopname}</td>
                        <td><a href="{:U('show',array('eid'=>$vo['id']))}">查看</a></td>
                        <td>{$vo.addtime}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });
        //回车搜索
        $(".search-input").keyup(function (e) {
            if (e.keyCode === 13) {
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        highlight_subnav("{:U('Eval/index')}");

        $('#select_date').datetimepicker({
            format: 'yyyy-mm-dd',
            language: "zh-CN",
            minView: 2,
            autoclose: true
        });
    </script>
</block>
